import request from '@/utils/request'
//查询是否之前保存了参数记录
export function getBySiteId(query) {
  return request({
    url: '/app/hps/enroll/getBySiteId',
    method: 'get',
	params: query
  })
}

//保存表单报名
export function saveApply(query) {
  return request({
    url: '/app/hps/enroll/saveApply',
    method: 'post',
	params: query
  })
}

//提交表单报名
export function submitApply(query) {
  return request({
    url: '/app/hps/enroll/submitApply',
    method: 'post',
	params: query
  })
}

//环鄱赛-查询报名记录列表
export function list(query) {
  return request({
    url: '/app/hps/enroll/list',
    method: 'get',
	params: query
  })
}

//环鄱赛-报名付款成功
export function paySuccess(query) {
  return request({
    url: '/app/hps/enroll/paySuccess',
    method: 'get',
	params: query
  })
}

// 环鄱赛-报名付款退赛申请
export function withdraw(data) {
  return request({
    url: '/app/hps/enroll/withdraw',
    method: 'post',
	data:data
  })
}

//环鄱赛-查询参数详情
export function getEntryDetails(query) {
  return request({
    url: '/app/hps/enroll/getHpsEnroll',
    method: 'get',
	params:query
  })
}